import requests
from config import RunConfig

def 环境因素导出(para):
    response = requests.get(
        url=RunConfig.url + "risk/identification/environment/export?detailId=&exploitMain=&exploitMainId=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 危险源详情(para):
    response = requests.get(
        url=RunConfig.url + "risk/identification/dangerous/detail?detailId=&exploitMain=&exploitMainId=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 环境因素详情(para):
    response = requests.get(
        url=RunConfig.url + "risk/identification/environment/detail?detailId=&exploitMain=&exploitMainId=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 环境因素编辑(para):
    response = requests.post(
        url=RunConfig.url + "/risk/identification/environment/edit",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 危险源分页(para):
    response = requests.post(
        url=RunConfig.url + "/risk/identification/dangerous/page?page=&perPage=",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 危险源编辑(para):
    response = requests.post(
        url=RunConfig.url + "/risk/identification/dangerous/edit",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 状态变更(para):
    response = requests.post(
        url=RunConfig.url + "/risk/identification/changeStatus?type=",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 环境因素分页(para):
    response = requests.post(
        url=RunConfig.url + "/risk/identification/environment/page?page=&perPage=",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 危险源导出(para):
    response = requests.get(
        url=RunConfig.url + "risk/identification/dangerous/export?detailId=&exploitMain=&exploitMainId=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response
